package com.hghivln.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hghivln.pojo.domain.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptMapper extends BaseMapper<Dept> {

    int deleteByIds(List<Long> idList);

    List<Dept> listDeptByDeptIds(List<Long> deptList);

    Dept selectByDeptId(Long deptId);

    /**
     * 根据部门ID更新号段(挂号编号)
     * @param deptId 部门id
     * @param registrationNumber 挂号编号
     */
    int updateDeptRegNumber(@Param("deptId") Long deptId,@Param("registrationNumber") Integer registrationNumber);

}